package com.jumi.microservice.exception;

import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author Scw
 * @Date 2020-07-21 14:36
 */
public enum UserCashExceptionEnum implements IResponseEnum {
    //参数类型
    MINWITHDRAW(500, "单次最低提现额度不能小于"),
    MAXWITHDRAW(500, "单次最高提现额度不能大于"),
    CANWITHDRAW(500, "提现金额不能大于可提金额"),
    UPPERBOUND(500, "每月累计提现额度不能大于"),

    //提现信息
    SEC_PASSWORD_WRONG(500, "提现密码输入错误！"),
    INFO_NO_EXIST(500, "提现信息不存在！"),
    ID_LESS_ZERO(500, "提现ID不能小于0！"),
    CHECKBOX_NO(500, "请至少选择一条信息！"),
    NO_LOGIN(500, "请先登录！"),
    NO_VERIFIED(500, "请先实名认证！"),
    NO_VERIFIED_TRUENAME(500, "真实姓名不能为空！"),
    NO_VERIFIED_IDCARD(500, "身份证号不能为空！"),
    NO_VERIFIED_BANKCARD(500, "银行卡号不能为空！"),
    NO_VERIFIED_ALICODE(500, "支付宝帐号不能为空！"),
    NO_ALLOW_TYPE(500, "提现类型不正确！"),
    NO_CASH_ACCOUNT(500, "提现账户不能为空！"),
    IDENTITY_NO_CERTIFICATION(500, "请先认证身份相关信息！"),
    SWITCH_ENABLE_ZERO(500, "当前平台无法发起提现，请耐心等待！");

    private Integer code;
    private String message;

    UserCashExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
